<%--
  Created by IntelliJ IDEA.
  User: my
  Date: 2020/12/31
  Time: 13:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="search.action">
    <button>查询</button>
</form>
<%-- userlist --%>

<c:if test="${not empty userlist}">
    <table>
        <tr>
            <th>state.count</th>
            <th>item.id</th>
            <th>item.uname</th>
            <th>item.password</th>
            <th>item.nickname</th>
            <th>item.cdate</th>
        </tr>
        <c:forEach items="${requestScope.userlist}" var="item" varStatus="state">
            <tr>
                <td>${state.count}</td>
                <td>${item.id}</td>
                <td>${item.uname}</td>
                <td>${item.password}</td>
                <td>${item.nickname}</td>
                <td>${item.cdate}</td>
            </tr>
        </c:forEach>
    </table>
</c:if>
</body>
</html>

